import { commonRequestApi } from './request';

//查询内容推荐
export const recommendListApi = (data: any) =>
  commonRequestApi('/wine-internet-community/content/recommend', data, 'POST');

//查询内容详情
export const queryInfoApi = (data: any) =>
  commonRequestApi('/wine-internet-community/content/query/info', data, 'POST');

//内容收藏-添加
export const addCollectionApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/my/content/collection/add',
    data,
    'POST'
  );

//内容收藏-取消
export const cancelCollectionApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/my/content/collection/cancel',
    data,
    'POST'
  );

//查询内容推荐-视频
export const videoRecommendApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/content/video/recommend',
    data,
    'POST'
  );
//用户-详情-发布列表
export const publishUserListApi = (data: any) =>
  commonRequestApi(
    '/wine-internet-community/content/publish/user/list',
    data,
    'POST'
  );

//根据页面类型获取页面地址
export const shopCigarCabinetApi = (data: any) =>
  commonRequestApi('/wine-internet-community/shop/cigar/cabinet', data, 'POST');
